package com.jxpanda.infrastructure.crypto.algorithm.digest;

import com.jxpanda.infrastructure.crypto.algorithm.digest.contract.AbstractDigest;
import com.jxpanda.infrastructure.crypto.constant.AlgorithmDigest;

public class ShaDigest extends AbstractDigest {

    public ShaDigest(AlgorithmDigest.SHA sha) {
        super(sha.getAlgorithm());
    }

    public static ShaDigest createDefault() {
        return new ShaDigest(AlgorithmDigest.SHA.SHA256);
    }

}
